//package com.example.tests;

import com.thoughtworks.selenium.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.util.regex.Pattern;

public class Con_Homepage_TextVerify extends SeleneseTestCase {
	@Before
	public void setUp() throws Exception {
		selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://www.gfwfn.com/");
		selenium.start();
	}

	@Test
	public void testUntitled() throws Exception {
		selenium.open("/");
		verifyTrue(selenium.isTextPresent(""));
		verifyTrue(selenium.isElementPresent("css=img[alt=\"Get into the act!\"]"));
		verifyTrue(selenium.isTextPresent("www.americanidol.com"));
		verifyTrue(selenium.isElementPresent("xpath=(//img[@alt='Register now for a chance to win a trip to see a live taping of American Idol®!*'])[2]"));
		verifyTrue(selenium.isElementPresent("css=img[alt=\"Get into the act!\"]"));
		verifyTrue(selenium.isElementPresent("//img[@alt='Join us and your participating Ford Dealership will make a donation to charity.*']"));
		verifyTrue(selenium.isElementPresent("//img[@alt='Attend this one-time event and you may win a 2013 Fusion!*']"));
		verifyTrue(selenium.isElementPresent("xpath=(//img[@alt='Register now for a chance to win a trip to see a live taping of American Idol®!*'])[2]"));
		verifyTrue(selenium.isElementPresent("//img[@alt='Test Your Judging Skills with American Idol® and you could win a VIP prize package*']"));
		verifyTrue(selenium.isElementPresent("css=img[alt=\"Check out the all-new 2013 Fusion\"]"));
		verifyTrue(selenium.isElementPresent("css=img[alt=\"Enroll\"]"));
		verifyTrue(selenium.isElementPresent("link=Official Rules"));
		verifyTrue(selenium.isElementPresent("css=p.alignRight"));
		verifyTrue(selenium.isElementPresent("link=CA Privacy Statement"));
		verifyTrue(selenium.isTextPresent("www.americanidol.com"));
		verifyTrue(selenium.isElementPresent("xpath=(//img[@alt='Register now for a chance to win a trip to see a live taping of American Idol®!*'])[2]"));
		}

	@After
	public void tearDown() throws Exception {
		selenium.stop();
	}
}
